<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
a.adminlink:link 
{
	color:#000000;
	text-decoration: none;
}
a.adminlink:VISITED 
{
	color:#000000;
	text-decoration: none;	
}
a.adminlink:ACTIVE 
{
	color:#000000;
	text-decoration: none;
}
a.adminlink:hover
{
	color:#000000;
	text-decoration: none;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
	$("#admin td").hover(function(){
			$(this).css("background","gray");
		},function(){
			$(this).css("background","white");
		});
});
</script>
</head>
<body>
<h2 align="center">관리자 페이지</h2>
<br>
<table align="center" id="admin">
	<tr>
		<td><a href = "${initParam.root }/admin_member.do" class="adminlink">회원관리</a></td>
		<td><a href = "${initParam.root}/admin_point.do" class="adminlink">포인트 증감</a></td>
		<td><a href = "${initParam.root}/admin_post.do" class="adminlink">게시물 이동</a></td>
	</tr>
</table>
<br>
<table align="center">
<tr><td>
<form action="admin_movePost.do">
게시물번호 : <input type="text" name="postNo">
&nbsp;&nbsp;&nbsp;&nbsp;
이동할게시판 : <select name="boardName">
	<option>---</option>
	<c:forEach var="boardList" items="${requestScope.boardList}">
		<c:choose>
			<c:when test="${boardList=='freeboard'}">
				<option value="${boardList}">자유게시판</option>
			</c:when>
			<c:when test="${boardList=='qnaboard'}">
				<option value="${boardList}">Q&A게시판</option>
			</c:when>
			<c:when test="${boardList=='movieboard'}">
				<option value="${boardList}">동영상게시판</option>
			</c:when>
			<c:when test="${boardList=='requestboard'}">
				<option value="${boardList}">요청게시판</option>
			</c:when>
			<c:when test="${boardList=='reviewboard'}">
				<option value="${boardList}">리뷰게시판</option>
			</c:when>
			<c:when test="${boardList=='newsboard'}">
				<option value="${boardList}">소식 및 뉴스</option>
			</c:when>
			<c:when test="${boardList=='spcialboard'}">
				<option value="${boardList}">스페셜메뉴</option>
			</c:when>
			<c:when test="${boardList=='noticeboard'}">
				<option value="${boardList}">공지사항</option>
			</c:when>
			<c:when test="${boardList=='shareboard'}">
				<option value="${boardList}">음악공유게시판</option>
			</c:when>
			<c:when test="${boardList=='imageboard'}">
				<option value="${boardList}">이미지게시판</option>
			</c:when>
		</c:choose>
	</c:forEach>
</select>
<input type="submit" value="이동">
</form>
</td></tr>
</table>
</body>
</html>